package server;

import java.util.HashMap;

public class HTTPResponse {

	private String version;
	
	private String statusCode;
	
	private String reasonPhrase;
	
	private HashMap<String, String> headers=new HashMap<String, String>();

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getReasonPhrase() {
		return reasonPhrase;
	}

	public void setReasonPhrase(String reasonPhrase) {
		this.reasonPhrase = reasonPhrase;
	}

	public String getHeader(String key){
		return headers.get(key);
	}
	
	public void setHeader(String key,String value){
		headers.put(key, value);
	}
	
	public void removeHeader(String key){
		headers.remove(key);
	}
}
